package com.jd.platform.gobrs.client.core.key;

import com.jd.platform.gobrs.client.core.key.manual.ManualNettyKeyPusher;
import com.jd.platform.gobrs.client.core.key.manual.ManualTurnCountCollector;
import com.jd.platform.gobrs.client.core.key.manual.ManualTurnKeyCollector;
import com.jd.platform.gobrs.common.model.GCacheKeyModel;
import com.jd.platform.gobrs.common.model.KeyCountModel;

/**
 * @author sizegang wrote on 2020-02-25
 * @version 1.0
 */
public class DefaultKeyHandler {

    private IKeyPusher iKeyPusher = new ManualNettyKeyPusher();

    private IKeyCollector<GCacheKeyModel, GCacheKeyModel> iKeyCollector = new ManualTurnKeyCollector();

    private IKeyCollector<KeyHotModel, KeyCountModel> iKeyCounter = new ManualTurnCountCollector();



    public IKeyPusher keyPusher() {
        return iKeyPusher;
    }

    public IKeyCollector<GCacheKeyModel, GCacheKeyModel> keyCollector() {
        return iKeyCollector;
    }

    public IKeyCollector<KeyHotModel, KeyCountModel> keyCounter() {
        return iKeyCounter;
    }



}
